package cn.zb.dao;

import java.util.List;



import javax.annotation.Resource;

import org.springframework.orm.hibernate5.HibernateTemplate;
import org.springframework.stereotype.Repository;

import cn.zb.pojo.*;
@Repository
public class TopicDao {
	@Resource
	private HibernateTemplate template;
	public List<Topic> select(int id)
	{
		return (List<Topic>) template.find("from Topic where SId=?", id);
	}
}
